import WinView_Generate from "../ui-generate/WinView_generate";

export class WinView extends WinView_Generate{
    private timer = 0

    onShow(){
        this.canUpdate = true
    }

    setInfo(name:string){
        this.timer = 3
        this.txt_context.text = `恭喜[${name}]获胜！`
    }

    onUpdate(dt:number){
        this.timer -= dt
        if(this.timer <= 0){
            UIService.hideUI(this)
        }
    }
}